package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShpingMapper;
import com.ruoyi.system.domain.Shping;
import com.ruoyi.system.service.IShpingService;

/**
 * 商品表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-06
 */
@Service
public class ShpingServiceImpl implements IShpingService 
{
    @Autowired
    private ShpingMapper shpingMapper;

    /**
     * 查询商品表
     * 
     * @param id 商品表主键
     * @return 商品表
     */
    @Override
    public Shping selectShpingById(Long id)
    {
        return shpingMapper.selectShpingById(id);
    }

    /**
     * 查询商品表列表
     * 
     * @param shping 商品表
     * @return 商品表
     */
    @Override
    public List<Shping> selectShpingList(Shping shping)
    {
        return shpingMapper.selectShpingList(shping);
    }

    /**
     * 新增商品表
     * 
     * @param shping 商品表
     * @return 结果
     */
    @Override
    public int insertShping(Shping shping)
    {
        return shpingMapper.insertShping(shping);
    }

    /**
     * 修改商品表
     * 
     * @param shping 商品表
     * @return 结果
     */
    @Override
    public int updateShping(Shping shping)
    {
        return shpingMapper.updateShping(shping);
    }

    /**
     * 批量删除商品表
     * 
     * @param ids 需要删除的商品表主键
     * @return 结果
     */
    @Override
    public int deleteShpingByIds(Long[] ids)
    {
        return shpingMapper.deleteShpingByIds(ids);
    }

    /**
     * 删除商品表信息
     * 
     * @param id 商品表主键
     * @return 结果
     */
    @Override
    public int deleteShpingById(Long id)
    {
        return shpingMapper.deleteShpingById(id);
    }
}
